#include<stdio.h>

int main()

{
  char myinput;

  printf("Which option will you choose:\n");
  printf("a) Program 1 \n");
  printf("b) Program 2 \n");
  
  scanf("%c", &myinput); //Scans for user input
  //myinput = 'a';                // Alternatively you can also pre assign the value of myinput and it will get process right away


  switch (myinput)
  {
    case 'a':
        printf("Run program 1\n");
        break;
    case 'b':
      {
        printf("Run program 2\n");
        printf("Please Wait\n");
        break;
      }
    default:
        printf("Invalid choice\n");
        break;
  }
}

